<form [formGroup]="form" (ngSubmit)="save()">
  <div class="modal-header">
    <h5 class="modal-title">{{ (isEdit ? '编辑' : '新建') + ' RFID' }}</h5>
    <button type="button" class="btn-close" (click)="activeModal.dismiss()">
    </button>
  </div>
  <div class="modal-body">
    <div class="mb-3">
      <label class="form-label" for="rfid1">RFID 1</label>
      <input type="text" id="rfid1" class="form-control" formControlName="rfid1" autofocus />
    </div>
    
    <div class="mb-3">
      <label class="form-label" for="type">类型</label>
      <select id="type" class="form-select" formControlName="type">
        <option value="" disabled>请选择类型</option>
        <option *ngFor="let option of typeOptions" [value]="option">{{ option }}</option>
      </select>
    </div>

    <div class="mb-3">
      <label class="form-label" for="businessContent">业务内容</label>
      <input type="text" id="businessContent" class="form-control" formControlName="businessContent" />
    </div>

    <div class="mb-3">
      <label class="form-label" for="rfid2">RFID 2</label>
      <input type="text" id="rfid2" class="form-control" formControlName="rfid2" />
    </div>

    <div class="mb-3">
      <label class="form-label" for="rfid3">RFID 3</label>
      <input type="text" id="rfid3" class="form-control" formControlName="rfid3" />
    </div>
  </div>
  <div class="modal-footer">
    <button type="button" class="btn btn-secondary" (click)="activeModal.dismiss()">
      取消
    </button>
    <button type="submit" class="btn btn-primary" [disabled]="form.invalid">
      保存
    </button>
  </div>
</form> 